package com.foo.cms.service;

import com.foo.cms.reqvo.*;
import com.foo.cms.vo.Article;
import com.foo.cms.vo.Pager;

import java.io.IOException;
import java.text.ParseException;

/**
 * Created with IntelliJ IDEA.
 * User: LZS
 * Date: 12-6-23
 * Time: 下午1:18
 * To change this template use File | Settings | File Templates.
 */
public interface ArticleService {
    Pager listArticle(ArticleListReq req);

    int deleteArticle(String id);

    int examArticle(String ids, String status);

    Article getArticle(String id);

    int addTextArticle(TextReq req, String uid) throws ParseException;

    int addImageArticle(ImageReq req, String uid) throws IOException;

    int addPicArticle(PictureReq req, String uid);

    int addVideoArticle(VideoReq req, String uid);

    int editPicArticle(PictureReq req, String uid);

    int editVideoArticle(VideoReq req, String uid);

    int editTextArticle(TextReq req, String uid) throws ParseException;

    int editImageArticle(ImageReq req, String uid) throws IOException, ParseException;

    int recommendArticle(String articleIds, String recommendId);

    int editSort(String id, String sort);
}
